﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderRefundList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Order.OrderRefundList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Commands.User.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
		<tr>
			<td>
			    <span>订 单 号&nbsp;</span>
				<asp:TextBox ID="orderno" runat="server" cond="orderno"></asp:TextBox>&nbsp;&nbsp;
			</td>
			<td>
			    <span>商品名称&nbsp;</span>
			    <asp:TextBox ID="pName" runat="server" cond="pname"></asp:TextBox>&nbsp;&nbsp;
			</td>

		</tr>

		<tr>
			<td colspan="9">
			    <span>退款状态&nbsp;</span>
				<asp:dropdownlist runat="server" ID="confirm" cond="confirm"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="process" cond="process"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="finish" cond="finish"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="cancel" cond="cancel"></asp:dropdownlist>&nbsp;&nbsp;
			</td>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.redirect(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>查询</span></a>
			</li>
            <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
      
		</ul>
	</div>
	<div class="tableList" layoutH="142">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
			    <th width="200px">退款单号</th>
                <th width="200px">订单号</th>
                <th width="80">申请人</th>
                <th width="80px">记录时间</th>
				<th width="80px">实际支付</th>
                <th width="80px">退款金额</th>
                <th width="140px">备注</th>
                <th width="160px">退款状态</th>
				<th width="80px" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid">
                    <td><input name="ids" value="<%#  ((IDictionary)Container.DataItem)["Id"]%>" type="checkbox"/></td>
				    <td title="<%#  ((IDictionary)Container.DataItem)["RefundNo"]%>">
                    
                    <%#  ((IDictionary)Container.DataItem)["RefundNo"]%>
               
               </td>
				    <td title="<%#  ((IDictionary)Container.DataItem)["OrderNo"]%>">
                   
                   <%#  ((IDictionary)Container.DataItem)["OrderNo"]%>
   
                    </td>

                    <td>    <%#  ((IDictionary)Container.DataItem)["MemberName"]%></td>
				    <td><%#string.Format("{0:yyyy-MM-dd}",((IDictionary)Container.DataItem)["RecodeDate"])%></td>

                    <td><%#  ((IDictionary)Container.DataItem)["PaymentPrice"]%></td>
                    <td><%#  ((IDictionary)Container.DataItem)["RefundPrice"]%></td>
                    <td><%#  ((IDictionary)Container.DataItem)["Memos"]%></td>
				    <td>
				    <%# ParamKit.GetValue("OrderIsConfirmed", ((IDictionary)Container.DataItem)["ConfirmStatus"], "&nbsp;")%>
				    <%# ParamKit.GetValue("ProcessStatus", ((IDictionary)Container.DataItem)["ProcessStatus"] , "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsFinish", ((IDictionary)Container.DataItem)["FinishStatus"] , "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsCancel", ((IDictionary)Container.DataItem)["CancelStatus"] , "&nbsp;")%></td>
				    <td align="center"> 
                         <% if (AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "VIEW_OWNER") || AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "VIEW_ALL"))
                            { %>
				        <a href="/SystemManage/Basics/Shop/OrderReturns/OrderRefundDetail.aspx?rno=<%#  ((IDictionary)Container.DataItem)["RefundNo"]%>&freshtabid=<%= _framePage.NavTabId %>" target="navTab" title="退款详情" rel="OrderRefundDetail">查看</a>&nbsp;&nbsp;
				   <%} %>
                 
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>

